<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Resource
 *
 * @author Hawra
 */
class Resource {

    //put your code here
    private $resource_id;
    private $resource_name;
    private $resource_type_id;
    private $resource_identifier;
    private $resource_hour_rent_price;
    private $resource_note;

    function __construct() {
        
    }

    public function getResource_identifier() {
        return $this->resource_identifier;
    }

    public function setResource_identifier($resource_identifier) {
        $this->resource_identifier = $resource_identifier;
    }

    public function getResource_id() {
        return $this->resource_id;
    }

    public function setResource_id($resource_id) {
        $this->resource_id = $resource_id;
    }

    public function getResource_name() {
        return $this->resource_name;
    }

    public function setResource_name($resource_name) {
        $this->resource_name = $resource_name;
    }

    public function getResource_type_id() {
        return $this->resource_type_id;
    }

    public function setResource_type_id($resource_type_id) {
        $this->resource_type_id = $resource_type_id;
    }

    public function getResource_hour_rent_price() {
        return $this->resource_hour_rent_price;
    }

    public function setResource_hour_rent_price($resource_hour_rent_price) {
        $this->resource_hour_rent_price = $resource_hour_rent_price;
    }

    public function getResource_note() {
        return $this->resource_note;
    }

    public function setResource_note($resource_note) {
        $this->resource_note = $resource_note;
    }

    public function setValuesFromArray($array) {
        if (isset($array['resource_name'])) {
            $this->setResource_name($array['resource_name']);
        }
        if (isset($array['resource_identifier'])) {
            $this->setResource_identifier($array['resource_identifier']);
        }
        if (isset($array['resource_note'])) {
            $this->setResource_note($array['resource_note']);
        }
        if (isset($array['resource_hour_rent_price'])) {
            $this->setResource_hour_rent_price($array['resource_hour_rent_price']);
        }
        if (isset($array['resource_type_id'])) {
            $this->setResource_type_id($array['resource_type_id']);
        }
        if (isset($array['resource_id'])) {
            $this->setResource_id($array['resource_id']);
        }
    }

}

?>
